package com.example.xpvideo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商家管理员表(LsShopAdmin)实体类
 *
 * @author 
 * @since 2021-09-18 10:55:26
 */
@ApiModel("商家管理员表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LsShopAdmin implements Serializable {
    private static final long serialVersionUID = -92239346692007261L;
        /**
    *主键
    * id
    * isnull 1
    */
    @ApiModelProperty(value="id",position=1)
    private Integer id;

    /**
    * 0-供应商城商户；1-本地生活商户；2-本地生活商户管理员
    * isnull 0
    */        @ApiModelProperty(value="0-供应商城商户；1-本地生活商户；2-本地生活商户管理员",position=2)
    private Integer root;
    /**
    * 商家id
    * isnull 0
    */        @ApiModelProperty(value="商家id",position=3)
    private Integer shopId;
    /**
    * 名称
    * isnull 0
    */        @ApiModelProperty(value="名称",position=4)
    private String name;
    /**
    * 账号
    * isnull 0
    */        @ApiModelProperty(value="账号",position=5)
    private String account;
    /**
    * 密码
    * isnull 0
    */        @ApiModelProperty(value="密码",position=6)
    private String password;
    /**
    * 密码盐
    * isnull 0
    */        @ApiModelProperty(value="密码盐",position=7)
    private String salt;
    /**
    * 角色id
    * isnull 0
    */        @ApiModelProperty(value="角色id",position=8)
    private Integer roleId;
    /**
    * 创建时间
    * isnull 0
    */        @ApiModelProperty(value="创建时间",position=9)
    private String createTime;
    /**
    * 修改时间
    * isnull 0
    */        @ApiModelProperty(value="修改时间",position=10)
    private String updateTime;
    /**
    * 最后登录时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value="最后登录时间",position=11)
    private LocalDateTime loginTime;
    /**
    * 最后登录ip
    * isnull 0
    */        @ApiModelProperty(value="最后登录ip",position=12)
    private String loginIp;
    /**
    * 是否禁用：0-否；1-是；
    * isnull 0
    */        @ApiModelProperty(value="是否禁用：0-否；1-是；",position=13)
    private Integer disable;
    /**
    * 0为非删除状态，非0位删除时间
    * isnull 0
    */        @ApiModelProperty(value="0为非删除状态，非0位删除时间",position=14)
    private Integer del;
    /**
    * 绑定手机号
    * isnull 0
    */        @ApiModelProperty(value="绑定手机号",position=15)
    private String phone;
    /**
    * 邀请码
    * isnull 0
    */        @ApiModelProperty(value="邀请码",position=16)
    private String invitationCode;
    /**
    * 上级账号
    * isnull 0
    */        @ApiModelProperty(value="上级账号",position=17)
    private String superAccount;
    /**
    * 用户表id
    * isnull 0
    */        @ApiModelProperty(value="用户表id",position=18)
    private Integer userId;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getRoot() {
        return root;
    }

    public void setRoot(Integer root) {
        this.root = root;
    }
        
    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }
        
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
        
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
        
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
        
    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
        
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
        
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
        
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
        
    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }
        
    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }
        
    public Integer getDisable() {
        return disable;
    }

    public void setDisable(Integer disable) {
        this.disable = disable;
    }
        
    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }
        
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
        
    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }
        
    public String getSuperAccount() {
        return superAccount;
    }

    public void setSuperAccount(String superAccount) {
        this.superAccount = superAccount;
    }
        
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"root\":" + root +
                            " ,\"shopId\":" + shopId +
                            " ,\"name\":" + name +
                            " ,\"account\":" + account +
                            " ,\"password\":" + password +
                            " ,\"salt\":" + salt +
                            " ,\"roleId\":" + roleId +
                            " ,\"createTime\":" + createTime +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"loginTime\":" + loginTime +
                            " ,\"loginIp\":" + loginIp +
                            " ,\"disable\":" + disable +
                            " ,\"del\":" + del +
                            " ,\"phone\":" + phone +
                            " ,\"invitationCode\":" + invitationCode +
                            " ,\"superAccount\":" + superAccount +
                            " ,\"userId\":" + userId +
                  '}';
    }


}
